import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CommenteditComponent } from './commentedit/commentedit.component';
import { CommentlistComponent } from './commentlist/commentlist.component';


import { MusiceditComponent } from './musicedit/musicedit.component';
import { MusiclistComponent } from './musiclist/musiclist.component';

const routes: Routes = [
  { path: "", pathMatch: "full", redirectTo: "music/list" },
  {path:"list",component:MusiclistComponent},
  {path:"edit",component:MusiceditComponent},
  {path:"comment",component:CommentlistComponent},
  {path:"comment/list",component:CommentlistComponent},
  {path:"comment/edit",component:CommenteditComponent},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MusicadminRoutingModule { }
